<?php
class CronsController extends AppController
{
    var $name = 'Crons';
    function update_deal()
    {
        //Configure::write('debug', 2);        
        $this->autoRender = false;
        App::import('Component', 'cron');
        $this->Cron = &new CronComponent();
        $this->Cron->update_deal();
        
        $logcronjob = array();
        $logcronjob['time'] = date('Y-m-d H:i:s');                
        Cache::write('cronjobsavebytrinh',$logcronjob);                
        
        print_r($GLOBALS['LISTMAIL_SENT']);
        echo 'ok';
    }
}
?>